import request from '@/utils/request.js'

export const getAllChannels = () => {
  return request({
    method: 'get',
    url: '/app/v1_0/channels'
  })
}

export const addUserChannels = (data) => {
  return request({
    method: 'PATCH',
    url: '/app/v1_0/user/channels',
    data: data
  })
}

export const deleteUserChannels = (channelId) => {
  return request({
    method: 'DELETE',
    url: '/app/v1_0/user/channels/' + channelId
  })
}
